package com.tutu.entity.vo;

import com.tutu.core.Constant;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 基础数据操作类
 */
@Data
public class BaseVo {

    private Integer code = Constant.CHECK_STATUS_DEFAULT;
    private String msg = "";
    private Integer count = Constant.CHECK_STATUS_DEFAULT;
    private List<Map<String, Object>> data = new ArrayList<>();

    public BaseVo() {

    }

    public BaseVo(Integer code, String errorMsg) {
        this.code = code;
        this.msg = errorMsg;
    }
}
